\section{real --- Real Part}
\label{fn:real}
\index{real()}
\index{complex numbers!real part}
\index{real part}
\begin{rail}
Real : 'real' '(' ( Scalar | Matrix ) ')' ;
\end{rail}

\verb+real+ returns the real part of the argument.  If the argument
is a matrix, then the operation is performed element-by-element, 
returning a matrix.


\paragraph{Example}
\index{example of real()}
\index{real()!example}
\begin{verbatim}
> real(2+5j)
        2
> real(0.45+5.4326j)
     0.45
> real(3.32)
     3.32
> a = 100*(rand(2,3)+rand(2,3)*(0+1j))
 a =
 matrix columns 1 thru 3
             100 + 66.5i            64.7 + 20.4i            3.69 + 65.5i
            97.5 + 8.47i            33.3 + 16.7i            16.2 + 12.9i
> real(a)
      100       64.7       3.69  
     97.5       33.3       16.2  
\end{verbatim}


See also: Page~\pageref{fn:conj} \verb+conj()+,
Page~\pageref{fn:imag} \verb+imag()+.

\newpage




